import request from "@/api/request";

export function loginApi(data?: any): Promise<any> {
  return request({
    url: "/api/login",
    method: "post",
    data,
  });
}

export function getInfoApi(): Promise<any> {
  return request({
    url: "/api/getInfo",
    method: "get",
  });
}

// 获取验证码
export function getCodeImg() {
  return request({
    url: "/api/captchaImage",
    headers: {
      isToken: false,
    },
    method: "get",
    timeout: 20000,
  });
}
